import { Component, EventEmitter, Input, Output, Optional, Inject } from "@angular/core";
import { FormGroup } from "@angular/forms";
import { MonkFormDesignConfig, MONK_FORMDEISGN_CONFIG } from "../../monk-form-design.interface";

@Component({
  // eslint-disable-next-line
  selector: 'app-build-blocks',
  templateUrl: './build-blocks.component.html',
  styleUrls: ['./build-blocks.component.scss']
})
export class BuildBlocksComponent  {
  @Input() formConfig: any;
  @Input() record: any;
  @Input() form: FormGroup;
  @Input() disabledKeys?: any[]= [];
  @Output() readonly previewOutput: EventEmitter<any> = new EventEmitter();
  @Input() readonly readonly = true
  @Input()desenColumn? = '' //脱敏字段 用,分割
  @Input()viewDesenInfo? = false //是否可查看脱敏信息 
  constructor(
    @Optional() @Inject(MONK_FORMDEISGN_CONFIG) public formDesignConfig: MonkFormDesignConfig,
  ) {}
}